package cn.edu.hbsi.web.controller;

import cn.edu.hbsi.config.DataSourceProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController
{
    @Autowired
    private DataSourceProperties dataSourceProperties;

    @GetMapping("/hello")
    public String hello(){
        System.out.println(dataSourceProperties.getDriverClassName() + "\n" +
                dataSourceProperties.getUrl() + "\n" +
                dataSourceProperties.getUsername() + "\n" +
                dataSourceProperties.getPassword());
        return "hello spring boot3";
    }
}